package com.example.demo.base;

import com.example.demo.consts.enums.ResponseStatus;
import lombok.Getter;

/**
 * @program: simida
 * @description: 第三方调用异常
 * @author: miaoguoxin
 * @create: 2019-10-29 11:00
 **/
@Getter
public class OutSideBizException extends BaseException {
    private Object[] args;

    public OutSideBizException(String message, int errCode, Object[] args) {
        super(message, errCode);
        this.args = args;
    }

    public OutSideBizException(String message, int errCode) {
        super(message, errCode);
    }

    public OutSideBizException(ResponseStatus responseStatus) {
        super(responseStatus);
    }

    public OutSideBizException(ResponseStatus responseStatus, Object[] args) {
        super(responseStatus);
        this.args = args;
    }
}